from django.forms import ModelForm, Textarea
from mails.models import Dmail


class MailForm(ModelForm):
    class Meta:
        model = Dmail
        fields = ('receiver','subject','body','date','time','sent')
        widgets = {
            'body': Textarea(attrs={'cols': 80, 'rows': 20}),
        }
